package main

import "fmt"

func main() {
	var balance = [5]float32{100.0, 20.0, 30.4, 70.0, 500.0}
	printArray(balance)
	fmt.Println()

	balance = [...]float32{1000.0, 2.0, 3.4, 7.0, 50.0}
	printArray(balance)
	fmt.Println()

	balance = [5]float32{1: 2.0, 3: 7.0}
	printArray(balance)
}

func printArray(balance [5]float32) {
	for _, f := range balance {
		fmt.Println(f)
	}
}
